import util from './util.js'

const app = document.getElementById('app')
const h2 = document.querySelector('h2')

console.log(util.prototype(app))

// const input = document.querySelector("[name='title']")

// const input = document.getElementById('h2')

// console.log(input)

// HTMLElement.prototype.substr = util.substr

// console.log(util.prototype(h2))

// console.log(h2.textContent)
// console.log(input.substr(0, 3))

// console.log(util.prototype(h2))
// console.log(util.prototype(input))
// console.log(h2.substr(0, 2))

//const app = document.getElementById("app");
//console.log(app);
//
//
// const body = document.querySelector("body");

// const app = document.getElementById("app");

// const prototypes = util.prototype(app);
// console.log(prototypes);

//app.addEventListener("click", () => alert("div"));
//input.addEventListener("click", () => alert("input"));

//console.log(Object.getPrototypeOf(input));
//console.log(app.__proto__);
//app.childNodes.forEach((node) => {
//
//});
